/**
 * 
 */
/******************************************************************/
/*		global var												  */
/******************************************************************/
var translateTab,paramSys,getApplication,globalchild,globalHeaderjson,globalStore ;

Ext.Loader.setConfig({
    enabled : true,
    paths   : {
        MyApp : 'resources/js/euniversity/app'
    } 
});

Ext.application({
	name: 'EUniversitySuperAdmin',
	appFolder: 'resources/js/euniversity/app',
	// controllers: ['principalmenus'],
	getDataTranslate:{},
	translateData:function(key){
		return this.getDataTranslate[key];
	},
	
	autoCreateViewport: false,
	launch: function() {
		var UniversityParams = new EUniversityParams();
		UniversityParams.LoadDataTranslate();
		var me = this;
		getApplication=this;
		UniversityParams.on("initAllTerminated",function(success,dataloded) {
						translateTab=dataloded;
						me.getDataTranslate=dataloded;
						
						var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});
						 viewport = Ext.create('EUniversitySuperAdmin.view.Viewport');
						 viewport.on('afterrender',function(){myMask.destroy();},this);
						 
						 
				  		
				  	    
		});
	
	}
});

function t(key){
	return translateTab[key];
}